﻿<%@ Page ValidateRequest="false" Language="C#" Theme="WebMaster" MasterPageFile="~/WebMaster/MasterPage.master" AutoEventWireup="true" CodeFile="ArticleAddEdit.aspx.cs" Inherits="webapp4U.UI.ArticleAddEdit" %>
<%@ Register Src="~/WebMaster/Controls/Title.ascx" TagName="Title" TagPrefix="uc" %>
<%@ Import Namespace="webapp4U" %>
<%@ Register TagPrefix="webapp4U" Namespace="webapp4U.UI" %>
<%@ Register TagPrefix="FTB" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageContent" Runat="Server">

<uc:Title runat="server" ResourceKey='Article_Add'  />

 <table width="595" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr style="padding-top:5pt;">
        <td colspan="2" align="center">
            <asp:Label runat="server" ID="lblMsg" Font-Bold="true" ForeColor="blue"></asp:Label>
        </td>
    </tr>
    <tr>
        <td width="75%" align="left">
            <asp:ValidationSummary runat="server" ID="valChangePasswordSummary" ShowMessageBox="true" ShowSummary="false" />
            <table border="0" cellpadding="0" cellspacing="0">
                 
                 <tr>
                    <td><b>Ngôn ngữ :</b></td>                    
                </tr> 
                <tr>
                    <td style="padding-top:3pt;">
                        <webapp4U:ddlLanguages runat="server" ID="dlLanguages" CssClass="Textbox" Width="268px" EnableViewState="true" />
                        <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator4" ControlToValidate="dlLanguages" ErrorMessage="Bạn chưa chọn ngôn ngữ" Display="None"></asp:RequiredFieldValidator>
                    </td>
                </tr>               
                 <tr>
                    <td><b><%=ResourceManager.GetString("ArticleCategory") %>:</b></td>
                 </tr>
                 <tr>
                    <td style="padding-top:3pt;">
                        <webapp4U:ddlArticleCategory ID="dlArticleCategory" runat="server" CssClass="Textbox" />
                        <asp:RangeValidator runat="server" ControlToValidate="dlArticleCategory" ID="rvl1" 
                            Type="Integer" MinimumValue="2" MaximumValue="10000" Display="dynamic" 
                            ErrorMessage="Category not null" />
                    </td>
                </tr>
                <tr>
                    <td style="padding-top:8pt;"><b><%=ResourceManager.GetString("Title") %>:</b></td>
                </tr>
                <tr>
                    <td style="padding-top:3pt;">
                        <asp:TextBox ID="txtTitle" TabIndex="1" Font-Bold="true" runat="server" Width="380" MaxLength="500"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="txtTitle" runat="server" ErrorMessage="Title not null" Display="None"  />
                    </td>
                </tr>
                
                <tr>
                    <td style="padding-top:10pt;"><b><%=ResourceManager.GetString("Article_Trichdan") %>:</b></td>
                </tr>
                <tr style="padding-top:3pt;">
                    <td>
                        <FTB:FreeTextBox id="txtExcerpt"  
                            TabIndex="3"
                            toolbarlayout="FontFacesMenu,FontSizesMenu,FontForeColorsMenu,FontForeColorPicker,FontBackColorsMenu,FontBackColorPicker|Bold,Italic,Underline,Strikethrough,RemoveFormat|JustifyLeft,JustifyRight,JustifyCenter,JustifyFull;BulletedList,NumberedList,Indent,Outdent;CreateLink,Unlink|InsertTable,EditTable,InsertImageFromGallery"
                            runat="Server"
                            Width="585px" Height="125px"
                            />
                        <%--<asp:TextBox ID="txtExcerpt" TabIndex="2" TextMode="MultiLine" Rows="5" runat="server" Width="380" MaxLength="3000"></asp:TextBox>--%>
                    </td>
                </tr>
           </table>
        </td>
        <td align="left" valign="top" width="90" style="padding-top:20pt;">
            <table border="0" cellpadding="0" width="90"  align="left">
                <tr>
                    <td style="padding-top:5pt;" height="90"  width="100%" valign="top" align="center">
                            <img name="ImageItem" id="ImageItem" runat="server"  border="1" src="~/WebMaster/Images/Picture.jpg" width="80"/>
                            <input type="hidden" runat="server" id="HiddenImageName" name="HiddenImageName" value="" />
                            <input type="hidden" runat="server" id="HiddenImageWidth" name="HiddenImageWidth" value="-1" />
                            <input type="hidden" runat="server" id="HiddenImageHeight" name="HiddenImageHeight" value="-1" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <input type="button" class="btupload" value=" Upload Picture" onclick='window.open("UploadFile.aspx?ActUpload=article","khunghinh","width=420,height=200,menubar=no,scrollbars=yes")' />    
                    </td>
                </tr>
            </table> 
        </td>
    </tr>
    
    <tr>
        <td><br /></td>
    </tr>
    <tr style="padding-top:8pt; padding-bottom:3pt;">
        <td colspan="2" ><b><%=ResourceManager.GetString("Article_Body") %> :</b></td>
    </tr>
    <tr>
        <td colspan="2" style="font-size:0.7em">
            <FTB:FreeTextBox id="txtBody"  
            TabIndex="3"
            toolbarlayout="FontFacesMenu,FontSizesMenu,FontForeColorsMenu,FontForeColorPicker,FontBackColorsMenu,FontBackColorPicker|Bold,Italic,Underline,Strikethrough,RemoveFormat|JustifyLeft,JustifyRight,JustifyCenter,JustifyFull;BulletedList,NumberedList,Indent,Outdent;CreateLink,Unlink|InsertTable,EditTable,InsertImageFromGallery"
            runat="Server"
            Width="585px" Height="200px"
            />
        </td>
    </tr>
    <tr style="padding-top:7pt; padding-right:3pt; padding-bottom:20pt;">
        <td colspan="2" align="right">
            <asp:CheckBox runat="server" ID="chkPriority"  Text="Tin nổi bật(Hiển thị trên menu)" TextAlign=Left />
            <asp:Button runat="server" TabIndex="4" ID="btSave" OnClick="btSave_Click" Text=" Save " CssClass="textbox" />
        </td>
    </tr>
</table>

</asp:Content>